package com.chinaisafe.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chinaisafe.base.mybatisplus.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * SysAccount
 * Description：账号实体类
 *
 * @author xuefu.shu
 * @date  2024-07-13 13:31:45
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_account")
@Schema(name = "SysAccount", description = "账号")
public class SysAccount extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "手机号")
    @TableField("mobile")
    private String mobile;

    @Schema(description = "密码")
    @TableField("`password`")
    private String password;

    @Schema(description = "微信openid")
    @TableField("wx_openid")
    private String wxOpenid;

    @Schema(description = "用户类别")
    @TableField("user_type")
    private Integer userType;

    @Schema(description = "主租户")
    @TableField("main_tenant_code")
    private String mainTenantCode;

    @Schema(description = "是否第一次登录")
    @TableField("first_login")
    private Boolean firstLogin;

    @Schema(description = "网关路由标记")
    @TableField("node_label")
    private String nodeLabel;
}
